package com.kaifa.org.tp02.example01;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test01 {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        User1 user1=(User1)applicationContext.getBean("user1");

        User1 user11=applicationContext.getBean("user1",User1.class);

        System.out.println(user1);
    }
}
